package atguigu.gson.fstjson;

import atguigu.gson.FieldVo;
import com.alibaba.fastjson.JSONArray;

public class Demo1 {

    public static void main(String[] args) {

        JSONArray array =new JSONArray();
        for (int i = 0; i < 5; i++) {
            FieldVo vo =new FieldVo();
            vo.setFieldName("aaa");
            vo.setFieldType("image");
            vo.setFileSize("0");
            vo.setFileName("");
            vo.setFieldValue("");

            array.add(vo);
        }

        System.out.println(array.toJSONString());

    }
}
